package com.yanqu.road.server.timer.monopolymarket;

import com.yanqu.road.server.manger.monopolymarket.MonopolyMarketMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Description
 * @Author cwq
 * @Data 2021/10/27 11:28
 */
public class MonopolyMarketJoinUnionTask extends GeneralTask {

    protected Logger logger = LogManager.getLogger(MonopolyMarketJoinUnionTask.class.getName());

    @Override
    public void doRun() {
        try {
            // 锁定榷场要塞的参与资格
            MonopolyMarketMgr.lockFortressJoinUnion();
            MonopolyMarketMgr.lockFortressJoinUnionMember();
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
}
